<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;


// ++++++++++++++++++++ API 接口 ++++++++++++++++++++ //
// ++++++++++++ 首页 Begin ++++++++++++ //
// 首页数据
Route::get('index','api/HomeFrame/getHomeFrame');
//获取用户信息
Route::get('api/getUserInfo','api/User/getUserInfo');
//前台用户登录
Route::post('api/login','api/User/login');

// ++++++++++++++++++++ 督办接口 ++++++++++++++++++++ //
// 督办搜索
Route::post('supervise/spervisionList','api/Supervision/spervisionList');
//我创建的督办
Route::post('supervise/spervisionListFromMe','api/Supervision/spervisionListFromMe');
//我收到的督办
Route::post('supervise/spervisionListToMe','api/Supervision/spervisionListToMe');
//督办详情
Route::post('supervise/letterEvaluateDetail','api/Supervision/letterEvaluateDetail');
//创建督办
Route::post('supervise/create','api/Supervision/create');
//删除督办
Route::post('supervise/del','api/Supervision/del');
//获取编辑的督办信息
Route::post('supervise/getInfo','api/Supervision/getInfo');
//修改督办
Route::post('supervise/update','api/Supervision/update');
//获取可选择的信访件列表
Route::get('supervise/getLetterList','api/Supervision/getLetterList');
//获取督办可指派的工作人员/与会人
Route::get('supervise/getSuperviseUserList','api/Supervision/getSuperviseUserList');
//编辑督办-删除指派人
Route::post('supervise/deluser_url','api/Supervision/deluser_url');
//新增督办办理
Route::post('supervise/addSupervisionSchedule','api/Supervision/addSupervisionSchedule');
//删除督办办理
Route::post('supervise/delSchedule','api/Supervision/delSchedule');
//督办交流列表
Route::get('supervise/showDiscuss','api/Supervision/showDiscuss');
//发布督办交流
Route::post('supervise/addDiscuss','api/Supervision/addDiscuss');
//删除督办交流
Route::post('supervise/delDiscuss','api/Supervision/delDiscuss');
//督办创建人评价
Route::post('supervise/letterEvaluate','api/Supervision/letterEvaluate');
//获取督办评价
Route::get('supervise/showEvaluate','api/Supervision/showEvaluate');
Route::get('supervise/getEvaluate','api/Supervision/getEvaluate');
//督办统计
Route::get('supervise/statistics','api/Supervision/statistics');

//上传图片
Route::rule('upload/upload','api/Upload/upload');


// 公告
Route::rule('wx/notice/getList','api/Notice/getList'); // 列表
Route::rule('wx/notice/getDetail','api/Notice/getDetail'); // 详情
//单位介绍
Route::get('index/organization','api/HomeFrame/organization');
//部门列表
Route::get('index/department','api/HomeFrame/department');
//部门详情
Route::get('index/departmentDetail','api/HomeFrame/departmentDetail');
//拆迁上报列表
Route::get('index/remove','api/HomeFrame/getremoveList');
Route::get('index/removeDetail','api/HomeFrame/removeDetail');
// 文件通知
Route::rule('wx/policy/getList','api/Policy/getList'); // 列表
Route::rule('wx/policy/getDetail','api/Policy/getDetail'); // 详情
Route::get('wx/getFilesNoticeCategory','api/Policy/getFilesNoticeCategory'); //文件通知分类
// 工作动态
Route::rule('wx/workdynamic/getList','api/Workdynamic/getList'); // 列表
Route::rule('wx/workdynamic/getDetail','api/Workdynamic/getDetail'); // 详情
// ++++++++++++ 首页 End ++++++++++++ //


// ++++++ 党建 ++++++ //
// 党建首页
Route::rule('wx/getPartyHomeFrame','api/PartyHomeFrame/getPartyHomeFrame');
// 党建要闻
Route::rule('wx/news/getList','api/news/getList'); // 列表
Route::rule('wx/news/getDetail','api/news/getDetail'); // 详情
// 学习中心
Route::rule('wx/microclass/getList','api/microclass/getList'); // 列表
Route::rule('wx/microclass/getDetail','api/microclass/getDetail'); // 详情
Route::rule('wx/microclass/getContent','api/microclass/getContent'); // 内容
Route::rule('wx/microclass/joinClass','api/microclass/joinClassroom'); // 加入学习计划
// 考试测评
Route::rule('wx/onlineexam/getOnlineexamList','api/Onlineexam/getOnlineexamList'); // 列表
Route::rule('wx/onlineexam/getOnlineexamDetail','api/Onlineexam/getOnlineexamDetail'); // 详情
Route::rule('wx/onlineexam/getExamquestion','api/Onlineexam/getExamquestion'); // 获取考题
Route::rule('wx/onlineexam/placeExamquestion','api/Onlineexam/placeExamquestion'); // 提交考题答案
Route::rule('wx/onlineexam/getExamresults','api/Onlineexam/getExamresults'); // 考试结果
Route::rule('wx/onlineexam/viewExamresults','api/Onlineexam/viewExamresults'); // 查看答案
// 组织活动
Route::rule('wx/activity/getList','api/activity/getList'); // 列表
Route::rule('wx/activity/getDetail','api/activity/getDetail'); // 详情
Route::rule('wx/activity/joinActivity','api/activity/joinActivity'); // 报名
Route::rule('wx/activity/offActivity','api/activity/offActivity'); // 取消报名

// ++++++ 服务 ++++++ //
// 意见反馈
Route::rule('wx/xx/xx','api/xx/getList'); // 列表
Route::rule('wx/xx/xx','api/xx/getDetail'); // 详情
// 办事指南
Route::rule('wx/guide/getGuideList','api/guide/getGuideList'); // 列表
Route::rule('wx/guide/getGuideDetail','api/guide/getGuideDetail'); // 详情
// 信访用户注册
Route::rule('api/register','api/User/register');
//修改信访用户资料
Route::post('api/modifyVisit','api/User/modifyVisit');
Route::post('api/modifyPassword','api/User/modifyPassword');
//提交个人资料（工作人员）
Route::post('workUser/updateUserInfo','api/User/updateUserInfo');

// 信访意见
Route::rule('wx/letter/getList','api/letter/getList'); // 服务首页意见反馈列表
Route::rule('api/letterDetail','api/letter/getDetail'); // 详情
Route::post('api/addLetter','api/letter/saveLetter'); // 写信
Route::rule('wx/letter/editFeedback','api/letter/editFeedback'); // 编辑
Route::rule('wx/letter/evaluateLetter','api/letter/evaluateLetter'); // 评论
Route::get('api/userLetterCount','api/letter/userLetterCount'); //获取我的信访数量
Route::get('api/userLetterInfo','api/letter/getMyList'); //我的信访列表
Route::get('letter/lookevaluate','api/letter/lookevaluate'); //查看评价
Route::get('wx/letter/delLetter','api/letter/delLetter'); //删除信件
// 用户查询
Route::rule('wx/xx/xx','api/xx/xx');
//我的反馈
Route::rule('wx/user/myFeedback','api/user/myFeedback');//反馈列表
//会议
Route::rule('wx/meeting/getJoinmeetingList','api/meeting/getJoinmeetingList');//确认参会列表
Route::rule('wx/meeting/isJoinmeeting','api/meeting/isJoinmeeting');//是否参会
Route::rule('wx/meeting/getSignList','api/meeting/getSignList');//签到列表
Route::rule('wx/meeting/isSign','api/meeting/isSign');//确认签到
Route::rule('wx/meeting/myMeetingDetail','api/meeting/myMeetingDetail');//会议详情
Route::rule('wx/meeting/searchMeeting','api/meeting/searchMeeting');//搜索会议


// ++++++++++++ 我的 Begin ++++++++++++ //
// 会议
Route::rule('wx/myMeeting','api/user/myMeeting');//列表
Route::rule('wx/saveMeeting','api/user/saveMeeting');//编辑/新增
Route::rule('wx/delMeeting','api/user/delMeeting');//删除
Route::rule('wx/delJoinmeeting','api/user/delJoinmeeting');//删除参会人



// 文件中心
Route::rule('wx/myLibrary','api/user/myLibrary');
// 数据统计
Route::rule('wx/xx','api/xx/xx');
// 信访中心
Route::rule('wx/myLetter','api/User/myLetter');
//我的-信访中心
Route::get('letter/letterList','api/letter/letterList');


// 学习计划
Route::rule('wx/myClassRoom','api/User/myClassRoom');//列表
// 考试查询
Route::rule('wx/getMyOnlineexams','api/user/getMyOnlineexams');
// 我的活动
Route::rule('wx/myActivity','api/user/myActivity');
// 设置
Route::rule('wx/xx','api/xx/xx');
// ++++++++++++ 我的 End ++++++++++++ //


// ++++++++++++ 文章相关 ++++++++++++ //
// citynews-城建要闻；industry-行业管理；housing-住房保障；townplan-城乡规划；townbuild-城乡建设
Route::rule('wx/article/getArticle','api/Article/getArticle');
Route::rule('wx/article/getArticleDetail','api/Article/getArticleDetail');


// ++++++++++++ 通用 ++++++++++++ //
// 上传单张图片
Route::rule('wx/uploadOneImg','api/Common/uploadOneImg');
// 删除单张图片
Route::rule('wx/delOneImg','api/Common/delOneImg');
// 获取短信验证码
Route::rule('api/getNoteCode','api/Sms/sendSms');
// 验证短信验证码
Route::rule('wx/checkSmsCode','api/Sms/checkSmsCode');